<script type="text/javascript">
function check_user_account_form(){
	$("#frm_user_account_new").submit();
}
$(document).ready(function(){
	$('#start_date').datepicker();
	$('#end_date').datepicker();
	$('#frm_user_account_new').validate({
		rules: {
			can_be_downloaded_items:{
				required: true,
				number: true
			},
			downloaded_items: {
        		required: true ,
        		number: true
        	},
        	start_date: {
        		required: true,
        	},
        	end_date: {
        		required: true,
        	}
        }, 
        messages: {
        	can_be_downloaded_items:{
        		required:"{TEXT.can_be_download_items}!"
        	},
        	downloaded_items:{
        		required:"{TEXT.downloaded_items}!"
        	},
        	start_date:{
        		required:"{TEXT.start_date}!"
        	},
        	end_date:{
        		required:"{TEXT.end_date}!"
        	},
        }
	 });
});
</script>
<div class="top_list_page"></div>
<form name="frmUpdate" id="frm_user_account_new" action="" method="post" enctype="multipart/form-data">
  <input type="hidden" name="sAction" value="{action}" />
  <table class="adminform" >
    <tr>
      <th colspan="2" scope="col">&nbsp;<span class="require" id="ajax_loading2">&nbsp;</span></th>
    </tr>
    <tr>
      <td width="150">{USER_ACCOUNT.name} :</td>
      <td>
      	<select name="user_id" id="user_id">
      	<!-- BEGIN: select -->
      	{option}
      	<!-- END: select -->
		</select>
      </td>
    </tr>
    <tr>
      <td width="250">{USER_ACCOUNT.can_be_download_items}<span class="require">*</span> :</td>
      <td>
      	<input type="text" id="can_be_downloaded_items" name="can_be_downloaded_items" value="{row.can_be_downloaded_items}" class="txtbox" />
      </td>
    </tr>
    <tr>
      <td>{USER_ACCOUNT.downloaded_items}<span class="require">*</span> :</td>
      <td>
      	<input type="text" id="downloaded_items" name="downloaded_items" value="{row.downloaded_items}" class="txtbox" />
      </td>
    </tr>
    <tr>
      <td>{USER_ACCOUNT.start_date}<span class="require">*</span> :</td>
      <td>
      	<input type="text" id="start_date" name="start_date" value="{row.start_date}" class="txtbox"/>
      </td>
    </tr>
    <tr>
      <td>{USER_ACCOUNT.end_date}<span class="require">*</span> :</td>
      <td>
      	<input type="text" id="end_date" name="end_date" value="{row.end_date}" class="txtbox"/>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
  </table>
</form>
